<?php
class Zendvn_Encode {
	public static function password($value) {
		$newPass = md5 ( $value );
		return $newPass;
	}
	public static function RandomString() {
    	$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
		$randstring = '';
		for($i = 0; $i < 7; $i ++) {
			$randstring .= $characters [rand ( 0, strlen ( $characters ) )];
		}
		return $randstring;
	}
}